package com.datang.petstore;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

//springboot启动
@SpringBootApplication
//扫描mybatis包
@MapperScan(basePackages = {"com.datang.petstore.generatemapper","com.datang.petstore.mapper"})
//开启缓存
@EnableCaching
//使用aspectJ AOP
@EnableAspectJAutoProxy(exposeProxy=true)
//自定义Filter过滤器
@ServletComponentScan
public class PetStoreApplication {

    public static void main(String[] args) {
        SpringApplication.run(PetStoreApplication.class, args);
    }
}
